package com.tenton.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Date: 2021/1/2
 * @Author: Tenton
 * @Description: Commodity实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "商品对象", description = "")
public class Commodity implements Serializable {
    @ApiModelProperty(value = "主键")
    private int id;
    @ApiModelProperty(value = "商品名称")
    private String comName;
    @ApiModelProperty(value = "销售单价")
    private BigDecimal price;
    @ApiModelProperty(value = "产品进价")
    private BigDecimal imPrice;
    @ApiModelProperty(value = "生产日期")
    private Date comDate;
    @ApiModelProperty(value = "过期日期")
    private Date outDate;
    @ApiModelProperty(value = "供应商公司名")
    private String supName;
    @ApiModelProperty(value = "商品类型")
    private String comType;
    @ApiModelProperty(value = "单位")
    private String unit;
    @ApiModelProperty(value = "创建人姓名")
    private String createName;
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    @ApiModelProperty(value = "修改人姓名")
    private String updateName;
    @ApiModelProperty(value = "修改日期")
    private Date updateTime;

    public Commodity(String comName, BigDecimal price, BigDecimal imPrice, Date comDate, Date outDate, String supName, String comType, String unit, String createName, Date createTime, String updateName, Date updateTime) {
        this.comName = comName;
        this.price = price;
        this.imPrice = imPrice;
        this.comDate = comDate;
        this.outDate = outDate;
        this.supName = supName;
        this.comType = comType;
        this.unit = unit;
        this.createName = createName;
        this.createTime = createTime;
        this.updateName = updateName;
        this.updateTime = updateTime;
    }
}